projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19d9d1e
)
(ido-copy-current-file-name): Use buffer-name if buffer-file-name is nil.
author
Kim F. Storm
<storm@cua.dk>
Tue, 11 Jul 2006 20:13:59 +0000
(20:13 +0000)
committer
Kim F. Storm
<storm@cua.dk>
Tue, 11 Jul 2006 20:13:59 +0000
(20:13 +0000)
lisp/ido.el
patch
|
blob
|
history
diff --git
a/lisp/ido.el
b/lisp/ido.el
index a4c26b52c981e5ce2845665f0535054377519c33..be1cba62f271cbc7a2f9ccfd32785c0a375e9c5f 100644
(file)
--- a/
lisp/ido.el
+++ b/
lisp/ido.el
@@
-2895,7
+2895,8
@@
With \\[universal-argument], pop all element."
"Insert file name of current buffer.
If repeated, insert text from buffer instead."
(interactive "P")
- (let* ((bfname (buffer-file-name ido-entry-buffer))
+ (let* ((bfname (or (buffer-file-name ido-entry-buffer)
+ (buffer-name ido-entry-buffer)))
(name (and bfname (file-name-nondirectory bfname))))
(when name
(setq ido-text-init